home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
tex-k
/
tex-k-archive.past
/
1995.02
/
000004_vieth@thphy.uni-duesseldorf.de_Thu Feb 2 17:59:02 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-02-28
|
23KB
Received: from thphy.uni-duesseldorf.de (xerxes.thphy.uni-duesseldorf.de) by cs.umb.edu with SMTP id AA29987
(5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Thu, 2 Feb 1995 14:57:59 -0500
Received: from macbeth.thphy.uni-duesseldorf.de.thphy.uni-duesseldorf.de by thphy.uni-duesseldorf.de (4.1/SMI-4.1)
id AA02230; Thu, 2 Feb 95 16:59:02 +0100
Date: Thu, 2 Feb 95 16:59:02 +0100
From: vieth@xerxes.thphy.uni-duesseldorf.de
Message-Id: <9502021559.AA02230@thphy.uni-duesseldorf.de>
Received: by macbeth.thphy.uni-duesseldorf.de.thphy.uni-duesseldorf.de (4.1/SMI-4.1)
id AA01451; Thu, 2 Feb 95 16:58:15 +0100
To: tex-k@cs.umb.edu
Cc: hobby@research.att.com
Subject: File: web2c.mp.shar
#!/bin/sh
# This is a shell archive (produced by GNU shar 4.0).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 1995-02-02 15:40 MET by <vieth@macbeth>.
# Source directory was `/ush/macbeth/vieth/tmp/mp-dist'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode name
# ------ ---------- ------------------------------------------
# 472 -rw-r--r-- web2c/mp/coerce.add
# 477 -rw-r--r-- web2c/mp/convert
# 543 -rw-r--r-- web2c/mp/small.sed
# 625 -rw-r--r-- web2c/mp/trap.sed
# 304 -rw-r--r-- web2c/mp/trapenv
# 7694 -rw-r--r-- web2c/mp/Makefile.in
# 3472 -rw-r--r-- web2c/mpware/Makefile.in
# 1196 -rw-r--r-- web2c/mpware/dmp.h.in
#
touch -am 1231235999 $$.touch >/dev/null 2>&1
if test ! -f 1231235999 && test -f $$.touch; then
shar_touch=touch
else
shar_touch=:
echo 'WARNING: not restoring timestamps'
fi
rm -f 1231235999 $$.touch
#
# ============= web2c/mp/coerce.add ==============
if test ! -d 'web2c'; then
echo 'x - creating directory web2c'
mkdir 'web2c'
fi
if test ! -d 'web2c/mp'; then
echo 'x - creating directory web2c/mp'
mkdir 'web2c/mp'
fi
if test -f 'web2c/mp/coerce.add' && test X"$1" != X"-c"; then
echo 'x - skipping web2c/mp/coerce.add (File already exists)'
else
echo 'x - extracting web2c/mp/coerce.add (text)'
sed 's/^X//' << 'SHAR_EOF' > 'web2c/mp/coerce.add' &&
/* Some definitions that get appended to the `coerce.h' file that web2c
X outputs. */
X
/* The C compiler ignores most unnecessary casts (i.e., casts of
X something to its own type). However, for structures, it doesn't.
X Therefore, we have to redefine these macros so they don't cast
X cast their argument (of type memoryword or fourquarters,
X respectively). */
#undef printword
#define printword(x) zprintword (x)
X
#undef tfmqqqq
#define tfmqqqq(x) ztfmqqqq (x)
SHAR_EOF
$shar_touch -am 1012200690 'web2c/mp/coerce.add' &&
chmod 0644 'web2c/mp/coerce.add' ||
echo 'restore of web2c/mp/coerce.add failed'
shar_count="`wc -c < 'web2c/mp/coerce.add'`"
test 472 -eq "$shar_count" ||
echo "web2c/mp/coerce.add: original size 472, current size $shar_count"
fi
# ============= web2c/mp/convert ==============
if test -f 'web2c/mp/convert' && test X"$1" != X"-c"; then
echo 'x - skipping web2c/mp/convert (File already exists)'
else
echo 'x - extracting web2c/mp/convert (text)'
sed 's/^X//' << 'SHAR_EOF' > 'web2c/mp/convert' &&
#!/bin/sh
# Convert Metafont to C.
X
sed=sed
X
$sed -e '
X : again
X /\.$/{
X N
X s/\.\n/\
X./
X t again
X }
X s/\.hh/.hhfield/g
X s/\.lh/.lhfield/g
' ../lib/common.defines ../lib/texmf.defines mp.p \
X | ../web2c/web2c -htexmf.h -m \
X | $sed -e '
X s/else write/else\
write/
X s/ maxcoef\( *[^( ]\)/ lmaxcoef\1/g
X s/ b1/ lb1/g
X s/ b2/ lb2/g
X s/ b3/ lb3/g
X ' \
X | ../web2c/fixwrites \
X | ../web2c/splitup mp
X
cat coerce.h coerce.add >xcoerce.h
mv xcoerce.h coerce.h
SHAR_EOF
$shar_touch -am 0130151095 'web2c/mp/convert' &&
chmod 0644 'web2c/mp/convert' ||
echo 'restore of web2c/mp/convert failed'
shar_count="`wc -c < 'web2c/mp/convert'`"
test 477 -eq "$shar_count" ||
echo "web2c/mp/convert: original size 477, current size $shar_count"
fi
# ============= web2c/mp/small.sed ==============
if test -f 'web2c/mp/small.sed' && test X"$1" != X"-c"; then
echo 'x - skipping web2c/mp/small.sed (File already exists)'
else
echo 'x - extracting web2c/mp/small.sed (text)'
sed 's/^X//' << 'SHAR_EOF' > 'web2c/mp/small.sed' &&
s/bistack_size=1500/bistack_size=785/
s/buf_size=3000/buf_size=500/
s/hash_prime=7919/hash_prime=1777/
s/hash_size=9500/hash_size=2100/
s/lig_table_size=15000/lig_table_size=5000/
s/max_halfword==262143/max_halfword==65535/
s/max_internal=300/max_internal=100/
s/max_kerns=2500/max_kerns=500/
s/max_strings=7500/max_strings=3000/
s/mem_max=262140/mem_max=60000/
s/mem_top=262140/mem_top=60000/
s/path_size=1000/path_size=300/
s/pool_size=100000/pool_size=36000/
s/stack_size=300/stack_size=30/
s/string_vacancies=74000/string_vacancies=10000/
SHAR_EOF
$shar_touch -am 0201162595 'web2c/mp/small.sed' &&
chmod 0644 'web2c/mp/small.sed' ||
echo 'restore of web2c/mp/small.sed failed'
shar_count="`wc -c < 'web2c/mp/small.sed'`"
test 543 -eq "$shar_count" ||
echo "web2c/mp/small.sed: original size 543, current size $shar_count"
fi
# ============= web2c/mp/trap.sed ==============
if test -f 'web2c/mp/trap.sed' && test X"$1" != X"-c"; then
echo 'x - skipping web2c/mp/trap.sed (File already exists)'
else
echo 'x - extracting web2c/mp/trap.sed (text)'
sed 's/^X//' << 'SHAR_EOF' > 'web2c/mp/trap.sed' &&
s/undef TRAP/define TRAP/
s/define memmax [0-9][0-9]*/define memmax 4500/
s/define maxinternal [0-9][0-9]*/define maxinternal 100/
s/define bufsize [0-9][0-9]*/define bufsize 500/
s/define errorline [0-9][0-9]*/define errorline 64/
s/define halferrorline [0-9][0-9]*/define halferrorline 32/
s/define maxprintline [0-9][0-9]*/define maxprintline 72/
s/define stacksize [0-9][0-9]*/define stacksize 30/
s/define maxstrings [0-9][0-9]*/define maxstrings 2500/
s/define stringvacancies [0-9][0-9]*/define stringvacancies 9000/
s/define poolsize [0-9][0-9]*/define poolsize 32000/
s/define memtop [0-9][0-9]*/define memtop 4500/
SHAR_EOF
$shar_touch -am 0202104095 'web2c/mp/trap.sed' &&
chmod 0644 'web2c/mp/trap.sed' ||
echo 'restore of web2c/mp/trap.sed failed'
shar_count="`wc -c < 'web2c/mp/trap.sed'`"
test 625 -eq "$shar_count" ||
echo "web2c/mp/trap.sed: original size 625, current size $shar_count"
fi
# ============= web2c/mp/trapenv ==============
if test -f 'web2c/mp/trapenv' && test X"$1" != X"-c"; then
echo 'x - skipping web2c/mp/trapenv (File already exists)'
else
echo 'x - extracting web2c/mp/trapenv (text)'
sed 's/^X//' << 'SHAR_EOF' > 'web2c/mp/trapenv' &&
#!/bin/sh
# Make sure that files will be found in the current directory, so the
# trap test will run properly.
#
MPXCOMMAND=touch # essentially a no-op
X
# trap.mf.
MPINPUTS=.
export MPINPUTS
X
# trap.tfm.
TEXFONTS=.
export TEXFONTS
X
# trap.base.
MPMEMS=.
export MPMEMS
X
# mf.pool.
MPPOOL=.
export MPPOOL
SHAR_EOF
$shar_touch -am 0117122795 'web2c/mp/trapenv' &&
chmod 0644 'web2c/mp/trapenv' ||
echo 'restore of web2c/mp/trapenv failed'
shar_count="`wc -c < 'web2c/mp/trapenv'`"
test 304 -eq "$shar_count" ||
echo "web2c/mp/trapenv: original size 304, current size $shar_count"
fi
# ============= web2c/mp/Makefile.in ==============
if test -f 'web2c/mp/Makefile.in' && test X"$1" != X"-c"; then
echo 'x - skipping web2c/mp/Makefile.in (File already exists)'
else
echo 'x - extracting web2c/mp/Makefile.in (text)'
sed 's/^X//' << 'SHAR_EOF' > 'web2c/mp/Makefile.in' &&
# Makefile for MetaPost.
X
SHELL = /bin/sh
srcdir = @srcdir@
VPATH = @srcdir@
X
# This is so kpathsea will get remade automatically if you change
# something in it and recompile from the package directory.
kpathsea_parent = ../..
kpathsea_dir = $(kpathsea_parent)/kpathsea
kpathsea = $(kpathsea_dir)/kpathsea.a
X
# Routines used everywhere.
commondefines = $(srcdir)/../lib/common.defines $(srcdir)/../lib/texmf.defines
commonh = $(srcdir)/../lib/config.h
commono = ../lib/lib.a $(kpathsea)
X
# Routines used in TeX and Metafont.
extrac = $(srcdir)/../lib/texmf.c
extrah = $(srcdir)/../lib/texmf.h $(srcdir)/../lib/texmfmem.h mpd.h
X
# Routines used in TeX, Metafont, and BibTeX.
fileioc = $(srcdir)/../lib/openinout.c
fileioo = openinout.o
X
objs = $(fileioo) mp0.o mp1.o mp2.o mp3.o mp4.o mp5.o mp6.o mp7.o mp8.o \
X mp9.o mp10.o mpmath.o
iobjs = iextra.o inimp.o
vobjs = vextra.o imp.o
X
# Where the test files are.
mpsrcdir = $(srcdir)/../mp
trapdir = $(mpsrcdir)/MPtrap
X
program = inimp virmp
X
CC = @CC@
CFLAGS = -g
CPPFLAGS = -DMP -I$(srcdir)/../lib -I../..
X
CCLD = $(CC)
RANLIB = @RANLIB@
LN = @LN_S@
X
LDFLAGS = $(CFLAGS) $(XLDFLAGS)
libs = $(commono) $(LIBS)
X
LIBS = @LIBS@
X
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
X
X
# The mems we know how to make.
mems = mp.mem mfmp.mem
X
# And how to make them.
inimp = MPPOOL=. ./inimp
X
X
# What to pass to submakes.
makeargs=SHELL='$(SHELL)' CC='$(CC)' CFLAGS='$(CFLAGS)' \
LDFLAGS='$(LDFLAGS)' LIBS='$(libs)' RANLIB='$(RANLIB)' LN='$(LN)'
X
X
X.SUFFIXES:
X.SUFFIXES: .o .c
X.c.o:
X $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
X
X
default: all
all: $(program)
triptrap: trapmp
X
X
# MetaPost doesn't need window support.
inimp: $(iobjs) $(objs) $(commono)
X $(CCLD) -o inimp $(LDFLAGS) $(iobjs) $(objs) $(libs)
X
virmp: $(vobjs) $(objs) $(commono)
X $(CCLD) -o virmp $(LDFLAGS) $(vobjs) $(objs) $(libs)
X
# This target is only for testing arithmetic routines. Run timemath with
# no arguments and use the results printed on standard output to decide if
# the external routines used when `FIXPT' is not defined in site.h work
# properly and run faster than the standard arithmetic routines.
X
timemath: time.o cmath.o pmath.o mathtest.o $(objs) $(commono)
X $(CCLD) $(LDFLAGS) -o timemath time.o cmath.o pmath.o mathtest.o
X
time.o: test_mpd.h mp.h
mathtest.o: test_mpd.h mp.h
pmath.o: test_mpd.h mp.h
cmath.o: test_mpd.h mp.h
X rm -f stamp-orig stamp-trap
X cp test_mpd.h mpd.h
X cp mpmath.c cmath.c
X $(CC) $(CFLAGS) -c cmath.c
X
X
check: run-trap
run-trap: trapmp trapf.tfm
X rm -f mtrap.mp
X -$(LN) $(trapdir)/mtrap.mp .
X -$(SHELL) -c '. ./trapenv; \
X ./trapmp mtrap > /dev/null 2>&1'
X -diff $(trapdir)/mtrap.log mtrap.log
X -diff $(trapdir)/mtrap.0 mtrap.0
X -diff $(trapdir)/mtrap.1 mtrap.1
X -diff $(trapdir)/writeo writeo
X -diff $(trapdir)/writeo.2 writeo.2
X rm -f trap.mp
X rm -f trap.mpx
X -$(LN) $(trapdir)/trap.mp .
X -$(LN) $(trapdir)/trap.mpx .
X touch trap.mpx
X -$(SHELL) -c '. ./trapenv; \
X ./trapmp < $(trapdir)/trap1.in >/dev/null 2>&1'
X mv trap.log trapin.log
X -diff $(trapdir)/trapin.log trapin.log
X -$(SHELL) -c '. ./trapenv; \
X ./trapmp < $(trapdir)/trap2.in > trap.fot'
X -diff $(trapdir)/trap.log trap.log
X -diff $(trapdir)/trap.fot trap.fot
X -diff $(trapdir)/trap.5 trap.5
X -diff $(trapdir)/trap.6 trap.6
X -diff $(trapdir)/trap.148 trap.148
X -diff $(trapdir)/trap.149 trap.149
X -diff $(trapdir)/trap.150 trap.150
X -diff $(trapdir)/trap.151 trap.151
X -diff $(trapdir)/trap.197 trap.197
X -diff $(trapdir)/trap.200 trap.200
X ../fontutil/tftopl trap.tfm trap.pl
X -diff $(trapdir)/trap.pl trap.pl
X
trapf.tfm:
X ../fontutil/pltotf $(trapdir)/trapf.pl trapf.tfm
X
# Make mem files automatically.
mems: $(mems)
X
mp.mem: inimp
X $(inimp) 'plain; dump'
X mv plain.mem mp.mem
X mv plain.log mp.log
X
mfmp.mem: inimp
X $(inimp) 'mfplain; dump'
X mv mfplain.mem mfmp.mem
X mv mfplain.log mfmp.log
X
# The `ini_to_trap' script changes mpd.h, instead of the change file, so
# retangling is not necessary. After changing constants, making a
# trapmp means making an inimp.
#
trapmp: stamp-trap
X $(MAKE) $(makeargs) inimp
X mv inimp trapmp
X
stamp-trap: mpd.h $(mpsrcdir)/trap.sed
X rm -f *.o temp
X sed -f $(mpsrcdir)/trap.sed < mpd.h > temp
X mv mpd.h mpd.h.bak
X mv temp mpd.h
X touch stamp-trap
X
clean-trap:
X rm -f *.o mpd.h trapmp stamp-trap
# Don't reinstall mpd.h with the test constants.
X if grep 'memmax 4500' mpd.h.bak >/dev/null 2>&1; then \
X rm -f mpd.h*; else mv mpd.h.bak mpd.h; fi
X
mp.p mp.pool: mp.web cmp.ch
X ../web/tangle mp.web cmp.ch
X
cmp.ch: $(mpsrcdir)/mp.ch
X rm -f cmp.ch
X cp $(mpsrcdir)/mp.ch cmp.ch
X
# The convert script produces the following files:
mp0.c mp1.c mp2.c mp3.c mp4.c mp5.c mp6.c mp7.c mp8.c mp9.c mp10.c \
imp.c coerce.h mpd.h: mp.p coerce.add $(commondefines)
X $(SHELL) $(mpsrcdir)/convert
X touch mpd.h
X
# The (hand-coded) file $(extrac) and the (generated) file itex.c have
# #ifdefs for INIMP, so we compile them differently
iextra.o: iextra.c $(commonh) $(extrah)
X $(CC) $(CPPFLAGS) -DINIMP -DINI $(CFLAGS) -c iextra.c
X
inimp.o: inimp.c $(commonh) $(extrah)
X $(CC) $(CPPFLAGS) -DINIMP $(CFLAGS) -c inimp.c
X
# MetaPost specific stuff in openinout.c needs some extra symbols
openinout.o: openinout.c
X $(CC) $(CPPFLAGS) -DMPXCOMMAND='"$(bindir)/makempx"' \
X -DTROFFMPX='"$(bindir)/troffmpx"' $(CFLAGS) -c openinout.c
X
# Avoid compiling files in another directory.
iextra.c: $(extrac)
X rm -f iextra.c
X $(LN) $(extrac) iextra.c
X
inimp.c: imp.c
X rm -f inimp.c
X $(LN) imp.c inimp.c
X
vextra.c: $(extrac)
X rm -f vextra.c
X $(LN) $(extrac) vextra.c
X
openinout.c: $(fileioc)
X rm -f openinout.c
X $(LN) $(fileioc) openinout.c
X
$(iobjs) $(vobjs) $(objs): $(commonh) $(extrah)
mpmath.o: mpd.h $(extrah)
X
mp0.o: mp0.c
mp1.o: mp1.c
mp2.o: mp2.c
mp3.o: mp3.c
mp4.o: mp4.c
mp5.o: mp5.c
mp6.o: mp6.c
mp7.o: mp7.c
mp8.o: mp8.c
mp9.o: mp9.c
mp10.o: mp10.c
X
X
Makefile: Makefile.in ../config.status
X (cd ..; sh config.status)
X
c-sources: mpd.h
X.PHONY: c-sources
X
install: install-exec install-data
X
install-exec: all
X for p in $(program); do $(INSTALL_PROGRAM) $$p $(bindir)/$$p; done
X
install-data: mp.pool
X $(SHELL) $(srcdir)/../../mkdirchain $(mppooldir)
X -if test -s mp.pool; then \
X $(INSTALL_DATA) mp.pool $(mppooldir)/mp.pool; else true; fi
X
TAGS: *.c *.h
X etags -t *.c *.h
X
X
mostlyclean::
X rm -f *.o $(program) $(lib) $(programs)
X
clean:: mostlyclean
X rm -f *.dvi
X
distclean:: clean
X rm -f Makefile config.status c-auto.h *.pool
X
# Although we can remake configure and c-auto.h.in, we don't remove
# them, since many people may lack Autoconf. Use configclean for that.
realclean:: distclean
X rm -f TAGS *.info*
X
extraclean::
X rm -f *.aux *.bak *.bbl *.blg *.dvi *.log *.orig *.pl *.rej
X rm -f *.i *.s *.tfm *.vf *.vpl *\#* *gf *pk *~
X rm -f CONTENTS.tex a.out core mpout.* patch* texput.*
X
configclean:
X rm -f configure c-auto.h.in c-auto.h
X
X
# Prevent GNU make 3 from overflowing arg limit on system V.
X.NOEXPORT:
X
# Be careful not to remove trap.* as we want to keep trap.sed.
mostlyclean::
X rm -f stamp-* trapmp
X rm -f mpd.h mpd.h.bak coerce.h *.log *.mem
X rm -f trapf.tfm mtrap.mp mtrap.0 mtrap.1 writeo writeo.2
X rm -f trap.mp trap.mpx trap.fot trap.tfm trap.pl trap.ps
X rm -f trap.0 trap.5 trap.6 trap.95 trap.96 trap.97
X rm -f trap.98 trap.99 trap.100 trap.101 trap.102 trap.103
X rm -f trap.104 trap.105 trap.106 trap.107 trap.108 trap.109
X rm -f trap.148 trap.149 trap.150 trap.151 trap.197 trap.200
X
# Be careful not to remove *.c *.h as we have to keep some files.
clean::
X rm -f *.p mpd.h mpd.h.bak coerce.h
X rm -f imp.c inimp.c iextra.c vextra.c openinout.c mp0.c mp1.c
X rm -f mp2.c mp3.c mp4.c mp5.c mp6.c mp7.c mp8.c mp9.c mp10.c
X
distclean::
X rm -f cmp.ch
X
extraclean::
X
SHAR_EOF
$shar_touch -am 0202152195 'web2c/mp/Makefile.in' &&
chmod 0644 'web2c/mp/Makefile.in' ||
echo 'restore of web2c/mp/Makefile.in failed'
shar_count="`wc -c < 'web2c/mp/Makefile.in'`"
test 7694 -eq "$shar_count" ||
echo "web2c/mp/Makefile.in: original size 7694, current size $shar_count"
fi
# ============= web2c/mpware/Makefile.in ==============
if test ! -d 'web2c/mpware'; then
echo 'x - creating directory web2c/mpware'
mkdir 'web2c/mpware'
fi
if test -f 'web2c/mpware/Makefile.in' && test X"$1" != X"-c"; then
echo 'x - skipping web2c/mpware/Makefile.in (File already exists)'
else
echo 'x - extracting web2c/mpware/Makefile.in (text)'
sed 's/^X//' << 'SHAR_EOF' > 'web2c/mpware/Makefile.in' &&
# Makefile for the MetaPost support programs.
X
SHELL = /bin/sh
srcdir = @srcdir@
VPATH = @srcdir@
X
# This is so kpathsea will get remade automatically if you change
# something in it and recompile from the package directory.
kpathsea_parent = ../..
kpathsea_dir = $(kpathsea_parent)/kpathsea
kpathsea = $(kpathsea_dir)/kpathsea.a
X
# Routines used everywhere.
commondefines = $(srcdir)/../lib/common.defines
commonh = $(srcdir)/../lib/config.h $(kpathsea_dir)/paths.h
commono = ../lib/lib.a $(kpathsea)
X
c_autoh = $(srcdir)/../lib/c-auto.h
X
program = makempx troffmpx mptotex mptotr dvitomp dmp newer
X
CC = @CC@
CFLAGS = -g
CPPFLAGS = -I$(srcdir)/../lib -I../..
X
CCLD = $(CC)
LDFLAGS = $(CFLAGS) $(XLDFLAGS)
LIBS = @LIBS@ $(extralibs)
libs = $(commono) $(LIBS)
X
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
X
X
X.SUFFIXES:
X.SUFFIXES: .o .c .p .ch
X.p.c:
X $(SHELL) $(srcdir)/../lib/convert $*.p $*.c
X.ch.p:
X ../web/tangle $*.web $*.ch
X.c.o:
X $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c
X
X
default: all
all: $(program)
X
# MAKEMPX
makempx: makempx.in
X sed -e 's,@BINDIR@,$(bindir),g' \
X <$(srcdir)/makempx.in >$@
X -chmod a+x $@
X
# TROFFMPX
troffmpx: troffmpx.in
X sed -e 's,@BINDIR@,$(bindir),g' \
X <$(srcdir)/troffmpx.in >$@
X -chmod a+x $@
X
# MPtoTEX
mptotex: mptotex.o
X $(CCLD) $(CFLAGS) -o mptotex mptotex.o
X
# MPtoTR
mptotr: mptotr.o
X $(CCLD) $(CFLAGS) -o mptotr mptotr.o
X
# DVItoMP
dvitomp: dvitomp.o $(commono)
X $(CCLD) -o dvitomp $(LDFLAGS) dvitomp.o $(libs)
dvitomp.o: dvitomp.c $(commonh)
dvitomp.c: dvitomp.p $(commondefines)
dvitomp.p: dvitomp.web dvitomp.ch
X
# DMP
dmp: dmp.o
X $(CCLD) $(CFLAGS) -o dmp dmp.o -lm
X
dmp.o: dmp.c dmp.h $(c_autoh)
X
dmp.h: dmp.h.in
X sed -e 's,@LIBDIR@,$(libdir),g' \
X <$(srcdir)/dmp.h.in >$@
# newer
newer: newer.o $(c_autoh)
X $(CCLD) $(CFLAGS) -o newer newer.o
X
X
# Don't test mptotr because its source file is identical to mptotex.c
# except for a few string constants.
# This will abort if either diff returns nonzero exit status
# otherwise the test is considered passed.
run-triptrap: mptotex newer
X ./mptotex testex.mp | diff testex.tex -
X sed '16s/^%//' <testex.mp >testex1
X -mptotex testex1 >/dev/null 2>testex2
X sed '17s/^%//' <testex.mp >testex1
X -mptotex testex1 >/dev/null 2>>testex2
X sed '18s/^%//' <testex.mp >testex1
X -mptotex testex1 >/dev/null 2>>testex2
X sed '19s/^%//' <testex.mp >testex1
X -mptotex testex1 >/dev/null 2>>testex2
X sed '20s/^%//' <testex.mp >testex1
X -mptotex testex1 >/dev/null 2>>testex2
X diff testex.err testex2
X
clean-triptrap:
X rm -f testex1 testex2
X
X
Makefile: Makefile.in ../config.status
X (cd ..; sh config.status)
X
X
c-sources: dvitomp.c
X.PHONY: c-sources
X
install install-exec: all
X for p in $(program); do $(INSTALL_PROGRAM) $$p $(bindir)/$$p; done
install-data:
X
X
TAGS: *.c *.h
X etags -t *.c *.h
X
X
mostlyclean::
X rm -f *.o $(program) $(lib) $(programs)
X
clean:: mostlyclean
X rm -f *.dvi *.pool
X
distclean:: clean
X rm -f Makefile config.status c-auto.h
X
# Although we can remake configure and c-auto.h.in, we don't remove
# them, since many people may lack Autoconf. Use configclean for that.
realclean:: distclean
X rm -f TAGS *.info*
X
extraclean::
X rm -f *.aux *.bak *.bbl *.blg *.dvi *.log *.orig *.pl *.rej
X rm -f *.i *.s *.tfm *.vf *.vpl *\#* *gf *pk *~
X rm -f CONTENTS.tex a.out core mfput.* patch* texput.*
X
configclean:
X rm -f configure c-auto.h.in c-auto.h
X
X
# Prevent GNU make 3 from overflowing arg limit on system V.
X.NOEXPORT:
X
clean::
X rm -f dmp.h dvitomp.p dvitomp.c dvitomp.h
SHAR_EOF
$shar_touch -am 0202145495 'web2c/mpware/Makefile.in' &&
chmod 0644 'web2c/mpware/Makefile.in' ||
echo 'restore of web2c/mpware/Makefile.in failed'
shar_count="`wc -c < 'web2c/mpware/Makefile.in'`"
test 3472 -eq "$shar_count" ||
echo "web2c/mpware/Makefile.in: original size 3472, current size $shar_count"
fi
# ============= web2c/mpware/dmp.h.in ==============
if test -f 'web2c/mpware/dmp.h.in' && test X"$1" != X"-c"; then
echo 'x - skipping web2c/mpware/dmp.h.in (File already exists)'
else
echo 'x - extracting web2c/mpware/dmp.h.in (text)'
sed 's/^X//' << 'SHAR_EOF' > 'web2c/mpware/dmp.h.in' &&
/*******************************************************************
X The following definitions are unique to MetaPost
*******************************************************************/
X
/* TODO: adapt this for kpathsea-2.6:
X
X This header a file is temporary kludge to allow compiling dmp.c
X after replacing the MetaPost specific site.h (based on an older
X version of web2c) by the generic c-auto.h from web2c-6.1.
X
X It defines some default search paths that should be replaced
X by the generic search paths defined in $TEXMF/web2c/texmf.cnf
X after adapting dmp.c to do path searching using kpathsea-2.6.
X
X Note that MPPOOL has been replaced by MPLIB in dmp.c to allow
X for better organization of the MetaPost files in the $TEXMF
X directory tree.
*/
X
/* Where dmp looks for TFM files */
#define TEXFONTS "@LIBDIR@/texmf/fonts/adobe/times/tfm:" \
X "@LIBDIR@/texmf/fonts/adobe/symbol/tfm:"
X
/* Where dmp looks for troff support files
X (trfonts.map, trchar.adj, etc.) */
#define MPLIB "@LIBDIR@/texmf/mplib"
X
/* Where dmp looks for troff font tables */
#define TRFONTS "/usr/lib/font/devpost"
X
/************ End of MetaPost stuff *******************************/
SHAR_EOF
$shar_touch -am 0201114195 'web2c/mpware/dmp.h.in' &&
chmod 0644 'web2c/mpware/dmp.h.in' ||
echo 'restore of web2c/mpware/dmp.h.in failed'
shar_count="`wc -c < 'web2c/mpware/dmp.h.in'`"
test 1196 -eq "$shar_count" ||
echo "web2c/mpware/dmp.h.in: original size 1196, current size $shar_count"
fi
exit 0